

struct Participant {

    static var tableName: String = "participants"

    let conversationId: String
    let userId: String
    let role: String
    let status: Int
    let createdAt: String
}

enum ParticipantRole: String {
    case OWNER
    case ADMIN
}

enum ParticipantAction: String {
    case ADD
    case REMOVE
    case JOIN
    case EXIT
    case ROLE
}

enum ParticipantStatus: Int {
    case START = 0
    case SUCCESS = 1
    case ERROR = 2
}
